package nf.com.crud.service.impl;

import nf.com.crud.dao.Test2Dao;
import nf.com.crud.dao.impl.Test2DaoImpl;
import nf.com.crud.entity.Test2;
import nf.com.crud.service.Test2Service;

import java.util.List;

public class Test2ServiceImpl implements Test2Service {
    Test2Dao dao=new Test2DaoImpl();
    @Override
    public List<Test2> getAll() {
        return dao.getAll();
    }

    @Override
    public int inset(Test2 test2) {
        return dao.insert(test2);
    }

    @Override
    public int update(Test2 test2) {
        return dao.update(test2);
    }

    @Override
    public int delete(int id) {
        return dao.delete(id);
    }
}
